import 'package:gold/generated/json/base/json_field.dart';
import 'package:gold/generated/json/goods_list_model.g.dart';
import 'dart:convert';
export 'package:gold/generated/json/goods_list_model.g.dart';

@JsonSerializable()
class GoodsListModel {
	///  商品ID
	int? id;
	/// 店铺ID
	@JSONField(name: 'shop_id')
	int? shopId;
	/// 商品名
	String? name;
	@JSONField(name: 'cover_image')
	/// 封面图片
	String? coverImage;
	/// 价格
	String? price;
	/// 市场价
	@JSONField(name: 'market_price')
	String? marketPrice;
	/// 兑换积分
	@JSONField(name: 'points_price')
	String? pointsPrice;
	/// 赠送积分数
	@JSONField(name: 'reward_points')
	String? rewardPoints;

	GoodsListModel();

	factory GoodsListModel.fromJson(Map<String, dynamic> json) => $GoodsListModelFromJson(json);

	Map<String, dynamic> toJson() => $GoodsListModelToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}